import request from '@/utils/request'

// 获取所有订单 用户id
export const getOrderById = id => {
  return request({
    method: 'GET',
    url: `/orders/select/${id}`
  })
}

// 添加订单
export const addOrder = data => {
  return request({
    method: 'POST',
    url: '/orders/add/batch',
    data
  })
}
// 修改订单同一操作
export const updateState = data => {
  return request({
    method: 'PUT',
    url: '/orders/update',
    data
  })
}
